package com.jf.ss.base;

import com.jf.ss.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan("com.jf.ss.base.mapper")
public class BaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseApplication.class);
    }
    /**
     * 新建id生成器对象
     */
    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
}
